package com.tendory.gpssim.evt;

import com.tendory.gpssim.Position;
import com.tendory.rxlocation.GPSUtil;

import java.util.Date;

public class EvtSendSimLoc {
    private double lati,longi;

    public EvtSendSimLoc(double lati, double longi) {
        this.lati = lati;
        this.longi = longi;
    }

    public Position toPosition() {
//        GPSUtil.gcj02_To_Gps84()
        Position p = new Position();
        p.setSpeed(0);
        p.setCourse(0);
        p.setLatitude(lati);
        p.setLongitude(longi);
        p.setTime(new Date());
        p.setAltitude(0);
        return p;
    }
}
